import { pathToRegexp } from 'path-to-regexp';
export const TOKEN_REDIS_PREFIX = 'token:' as const;
export const AUTH = true;
export const CHECK_IP = false;
export const AUTH_WHITE = [
  pathToRegexp('/login'),
  pathToRegexp('/captcha'),
  pathToRegexp('/loginLog/:path(.*)', [], { end: false }),
] as const;
export const WHITE_IP = ['112.224.141.185'];
export const SWAGGER = false;
